
//
// 110319 - AH - Created. 
//

package org.soekrat.engine.swnetwork;

import org.jgrapht.EdgeFactory;

/**
 * <p>
 *   {@link EdgeFactory} that created
 *   {@link SpareWheelNetworkEdge}s between 
 *   {@link SpareWheelNetworkNode}s in a
 *   {@link SpareWheelNetwork}.
 * </p>
 * @author Arne Halvorsen (AH)
 * @author Laetitia Le Chatton (LLC)
 */
public final class SpareWheelNetworkEdgeFactory 
  implements EdgeFactory<SpareWheelNetworkNode, SpareWheelNetworkEdge> 
{
  /**
   * <p>
   *   Constructor.
   * </p>
   */
  public SpareWheelNetworkEdgeFactory(){}
  
  // Specified in EdgeFactory<SpareWheelNetworkNode, SpareWheelNetworkEdge>
  public SpareWheelNetworkEdge createEdge(SpareWheelNetworkNode sourceVertex, 
    SpareWheelNetworkNode targetVertex) 
  {
    return new SpareWheelNetworkEdge(sourceVertex, targetVertex);
  }

}
